package com.htgd.gardenexpo.dao;

import com.htgd.gardenexpo.entity.WxUserTheaterTicket;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 微信用户剧场投票详情 Mapper 接口
 * </p>
 *
 * @author author
 * @since 2024-10-22
 */
public interface WxUserTheaterTicketMapper extends BaseMapper<WxUserTheaterTicket> {

    @Select("SELECT * FROM `wx_user_theater_ticket` WHERE plan_id = #{planId} AND movie_id =#{id} AND open_id =#{openId}")
    WxUserTheaterTicket isVote(@Param("openId") String openId, @Param("id") String id, @Param("planId") String planId);
}
